/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Durable Medical Equipmentand Medical Supplies Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20774 (C-0-T19465-S20772-S20774-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getDurableMedicalEquipmentandMedicalSuppliesProviderCodes()
 * @model extendedMetaData="name='DurableMedicalEquipmentandMedicalSuppliesProviderCodes'"
 * @generated
 */
public enum DurableMedicalEquipmentandMedicalSuppliesProviderCodes implements Enumerator {
	/**
	 * The '<em><b>332B00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332B00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_332B00000X(0, "_332B00000X", "332B00000X"),

	/**
	 * The '<em><b>332BC3200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332BC3200X_VALUE
	 * @generated
	 * @ordered
	 */
	_332BC3200X(1, "_332BC3200X", "332BC3200X"),

	/**
	 * The '<em><b>332BD1200X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332BD1200X_VALUE
	 * @generated
	 * @ordered
	 */
	_332BD1200X(2, "_332BD1200X", "332BD1200X"),

	/**
	 * The '<em><b>332BN1400X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332BN1400X_VALUE
	 * @generated
	 * @ordered
	 */
	_332BN1400X(3, "_332BN1400X", "332BN1400X"),

	/**
	 * The '<em><b>332BX2000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332BX2000X_VALUE
	 * @generated
	 * @ordered
	 */
	_332BX2000X(4, "_332BX2000X", "332BX2000X"),

	/**
	 * The '<em><b>332BP3500X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_332BP3500X_VALUE
	 * @generated
	 * @ordered
	 */
	_332BP3500X(5, "_332BP3500X", "332BP3500X");

	/**
	 * The '<em><b>332B00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332B00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332B00000X
	 * @model literal="332B00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _332B00000X_VALUE = 0;

	/**
	 * The '<em><b>332BC3200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332BC3200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332BC3200X
	 * @model literal="332BC3200X"
	 * @generated
	 * @ordered
	 */
	public static final int _332BC3200X_VALUE = 1;

	/**
	 * The '<em><b>332BD1200X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332BD1200X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332BD1200X
	 * @model literal="332BD1200X"
	 * @generated
	 * @ordered
	 */
	public static final int _332BD1200X_VALUE = 2;

	/**
	 * The '<em><b>332BN1400X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332BN1400X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332BN1400X
	 * @model literal="332BN1400X"
	 * @generated
	 * @ordered
	 */
	public static final int _332BN1400X_VALUE = 3;

	/**
	 * The '<em><b>332BX2000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332BX2000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332BX2000X
	 * @model literal="332BX2000X"
	 * @generated
	 * @ordered
	 */
	public static final int _332BX2000X_VALUE = 4;

	/**
	 * The '<em><b>332BP3500X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>332BP3500X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_332BP3500X
	 * @model literal="332BP3500X"
	 * @generated
	 * @ordered
	 */
	public static final int _332BP3500X_VALUE = 5;

	/**
	 * An array of all the '<em><b>Durable Medical Equipmentand Medical Supplies Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final DurableMedicalEquipmentandMedicalSuppliesProviderCodes[] VALUES_ARRAY =
		new DurableMedicalEquipmentandMedicalSuppliesProviderCodes[] {
			_332B00000X,
			_332BC3200X,
			_332BD1200X,
			_332BN1400X,
			_332BX2000X,
			_332BP3500X,
		};

	/**
	 * A public read-only list of all the '<em><b>Durable Medical Equipmentand Medical Supplies Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<DurableMedicalEquipmentandMedicalSuppliesProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Durable Medical Equipmentand Medical Supplies Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DurableMedicalEquipmentandMedicalSuppliesProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DurableMedicalEquipmentandMedicalSuppliesProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Durable Medical Equipmentand Medical Supplies Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DurableMedicalEquipmentandMedicalSuppliesProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			DurableMedicalEquipmentandMedicalSuppliesProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Durable Medical Equipmentand Medical Supplies Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static DurableMedicalEquipmentandMedicalSuppliesProviderCodes get(int value) {
		switch (value) {
			case _332B00000X_VALUE: return _332B00000X;
			case _332BC3200X_VALUE: return _332BC3200X;
			case _332BD1200X_VALUE: return _332BD1200X;
			case _332BN1400X_VALUE: return _332BN1400X;
			case _332BX2000X_VALUE: return _332BX2000X;
			case _332BP3500X_VALUE: return _332BP3500X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private DurableMedicalEquipmentandMedicalSuppliesProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //DurableMedicalEquipmentandMedicalSuppliesProviderCodes
